const tokenKey = 'head-token'
// 保存token
const saveToken = tokenObj =>
  window.localStorage.setItem(tokenKey, JSON.stringify(tokenObj))
// 获取token
const getToken = () => JSON.parse(window.localStorage.getItem(tokenKey))
// 删除token
const removeToken = () => window.localStorage.removeItem(tokenKey)

export { saveToken, getToken, removeToken }
